import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    // mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/',
            // redirect: '/processconfig',
            // name: 'index',
            component: () => import('./views/index/Index.vue'),
            children: [
                {
                    path: '/alarm',
                    component: () => import('./views/alarm/index.vue'),
                },
                {
                    path: '/name',
                    component: () => import('./views/Name.vue'),
                },
                {
                    path: '/404',
                    name: '404',
                    component: () => import('./views/NotFound.vue')
                }
            ]
        }
    ]
})
